﻿Public Class SoNhatKyBanHang

    Private Sub SoNhatKyBanHang_Load(sender As Object, e As EventArgs) Handles Me.Load
        Me.TuNgayIDateEdit.EditValue = getNgayDauThang(Today)
        Me.DenNgayIDateEdit.EditValue = getNgayCuoiThang(Today)
        Me.GetSoNhatKyBanHangTableAdapter.Fill(Me.PCV_CLINICDataSetTongHop.getSoNhatKyBanHang, CDate(Me.TuNgayIDateEdit.EditValue), CDate(DenNgayIDateEdit.EditValue))
    End Sub
    Private Sub BarButtonItemLamTuoi_ItemClick_1(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItemLamTuoi.ItemClick
        Me.GetSoNhatKyBanHangTableAdapter.Fill(Me.PCV_CLINICDataSetTongHop.getSoNhatKyBanHang, CDate(Me.TuNgayIDateEdit.EditValue), CDate(DenNgayIDateEdit.EditValue))
    End Sub

    Private Sub BarButtonItemBaoCao_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItemBaoCao.ItemClick
        Me.setHeaderFooter(Main.TenDoanhNghiep.ToString, Main.DiaChiDoanhNghiep.ToString)
        Me.IGridView1.setTitle("Số nhật ký bán hàng " & Format(CDate(Me.TuNgayIDateEdit.EditValue).Month, "00") & "/" & CDate(Me.TuNgayIDateEdit.EditValue).Year)
        Me.IGridView1.inNhanh()
    End Sub
End Class
